﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for LibertyCarMoreDetail
/// </summary>
/// 
namespace CE.CarInsurance
{
    public class LibertyCarMoreDetail
    {
        private Int64 _cecarmoredetailid;
        private Int64 _cecarid;
        private Int64 _providercompanyid;
        private string _name;
        private string _postalcode;
        private string _unitno;
        private string _homeno;
        private string _address;
        private string _empnameandtrade;
        private string _mobileno;
        private string _homehoneno;
        private string _officephoneno;
        private string _nricno;
        private string _nationality;
        private string _hasdrivewestmalaysia;
        private string _ncdreason;
        private string _ncdotherreason;
        private string _vechicleno;
        //private string _odometerreading;
        private DateTime _dateofregistration;
        private string _engineno;
        private string _chassisno;
        //private float _estimatemarketValue;
        private bool _hashirepurchase;
        private string _hpcompanyname;
        //private string _hpcpostalcode;
        //private string _hpcunitno;
        //private string _hpchomeno;
        //private string _hpcaddress;
        private bool _haspreinsurer;
        private string _preinsurername;
        private string _preinsvechicleno;
        //private string _preinspolicyno;
        private DateTime _preinsexpirydate;
        private string _ncdentitlement;
        private bool _hasvechiclemodified;
        private string _vechiclemodifyreason;
        private bool _hasaccessory;
        private string _accessorydescription;
        //private DateTime _insurancefromdate;
        //private DateTime _insurancetodate;
        private bool _hasconvictedmoteroffence;
        private string _convictedreason;
        private bool _hasdemeritpoints;
        private bool _hasphysicalimpairment;
        private string _physicalimpairmentreason;
        private bool _hasinsuranceterminated;
        private string _insuranceterminatedreason;
        private string _pamenttype;
        private string _bankname;
        private string _chequeno;
        private string _nameofthecard;
        private string _issuingbankname;
        private string _creditcardno;
        private string _cardexpirymonth;
        private string _cardexpiryyear;
        private string _cardtype;
        private string _quoterefno;

        //common field name
        private Int64 _refceuserid;
        private string _rowguid;
        private Int64 _vieweddetailid;
        private bool _status;
        private Int64 _carresultid;
        private DateTime _createddate;
        private DateTime _modifieddate;

        private string _info1; //insurancerefused
        private string _info2;  //insurancerefusedreason
        private string _info3;  //ncd protection status
        private Int64 _ninfo1; //Agent ID
        public LibertyCarMoreDetail()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CECarMoreDetailId
        {
            get { return _cecarmoredetailid; }
            set { _cecarmoredetailid = value; }
        }

        public Int64 CECarId
        {
            get { return _cecarid; }
            set { _cecarid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string PostalCode
        {
            get { return _postalcode; }
            set { _postalcode = value; }
        }

        public string UnitNo
        {
            get { return _unitno; }
            set { _unitno = value; }
        }

        public string HomeNo
        {
            get { return _homeno; }
            set { _homeno = value; }
        }

        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }

        public string EmpNameandTrade
        {
            get { return _empnameandtrade; }
            set { _empnameandtrade = value; }
        }

        public string MobileNo
        {
            get { return _mobileno; }
            set { _mobileno = value; }
        }

        public string HomePhoneNo
        {
            get { return _homehoneno; }
            set { _homehoneno = value; }
        }

        public string OfficePhoneNo
        {
            get { return _officephoneno; }
            set { _officephoneno = value; }
        }

        public string NRICNo
        {
            get { return _nricno; }
            set { _nricno = value; }
        }

        public string Nationality
        {
            get { return _nationality; }
            set { _nationality = value; }
        }

        public string HasDriveWestMalaysia
        {
            get { return _hasdrivewestmalaysia; }
            set { _hasdrivewestmalaysia = value; }
        }

        public string NCDReason
        {
            get { return _ncdreason; }
            set { _ncdreason = value; }
        }

        public string NCDOtherReason
        {
            get { return _ncdotherreason; }
            set { _ncdotherreason = value; }
        }

        public string VechicleNo
        {
            get { return _vechicleno; }
            set { _vechicleno = value; }
        }

        //public string OdometerReading
        //{
        //    get { return _odometerreading; }
        //    set { _odometerreading = value; }
        //}

        public DateTime DateofRegistration
        {
            get { return _dateofregistration; }
            set { _dateofregistration = value; }
        }

        public string EngineNo
        {
            get { return _engineno; }
            set { _engineno = value; }
        }

        public string ChassisNo
        {
            get { return _chassisno; }
            set { _chassisno = value; }
        }

        //public float EstimateMarketValue
        //{
        //    get { return _estimatemarketValue; }
        //    set { _estimatemarketValue = value; }
        //}

        public bool HasHirePurchase
        {
            get { return _hashirepurchase; }
            set { _hashirepurchase = value; }
        }

        public string HPCompanyName
        {
            get { return _hpcompanyname; }
            set { _hpcompanyname = value; }
        }

        //public string HPCPostalCode
        //{
        //    get { return _hpcpostalcode; }
        //    set { _hpcpostalcode = value; }
        //}

        //public string HPCUnitNo
        //{
        //    get { return _hpcunitno; }
        //    set { _hpcunitno = value; }
        //}

        //public string HPCHomeNo
        //{
        //    get { return _hpchomeno; }
        //    set { _hpchomeno = value; }
        //}

        //public string HPCAddress
        //{
        //    get { return _hpcaddress; }
        //    set { _hpcaddress = value; }
        //}

        public bool HasPreInsurer
        {
            get { return _haspreinsurer; }
            set { _haspreinsurer = value; }
        }

        public string PreInsurerName
        {
            get { return _preinsurername; }
            set { _preinsurername = value; }
        }

        public string PreInsVechicleNo
        {
            get { return _preinsvechicleno; }
            set { _preinsvechicleno = value; }
        }

        //public string PreInsPolicyNo
        //{
        //    get { return _preinspolicyno; }
        //    set { _preinspolicyno = value; }
        //}

        public DateTime PreInsExpiryDate
        {
            get { return _preinsexpirydate; }
            set { _preinsexpirydate = value; }
        }

        public string NCDEntitlement
        {
            get { return _ncdentitlement; }
            set { _ncdentitlement = value; }
        }

        public bool HasVechicleModified
        {
            get { return _hasvechiclemodified; }
            set { _hasvechiclemodified = value; }
        }

        public string VechicleModifyReason
        {
            get { return _vechiclemodifyreason; }
            set { _vechiclemodifyreason = value; }
        }

        public bool HasAccessory
        {
            get { return _hasaccessory; }
            set { _hasaccessory = value; }
        }

        public string AccessoryDescription
        {
            get { return _vechiclemodifyreason; }
            set { _vechiclemodifyreason = value; }
        }

        //public DateTime InsuranceFromDate
        //{
        //    get { return _insurancefromdate; }
        //    set { _insurancefromdate = value; }
        //}

        //public DateTime InsuranceToDate
        //{
        //    get { return _insurancetodate; }
        //    set { _insurancetodate = value; }
        //}

        public bool HasConvictedMoterOffence
        {
            get { return _hasconvictedmoteroffence; }
            set { _hasconvictedmoteroffence = value; }
        }

        public string ConvictedReason
        {
            get { return _convictedreason; }
            set { _convictedreason = value; }
        }

        public bool HasDemeritPoints
        {
            get { return _hasdemeritpoints; }
            set { _hasdemeritpoints = value; }
        }

        public bool HasPhysicalImpairment
        {
            get { return _hasphysicalimpairment; }
            set { _hasphysicalimpairment = value; }
        }

        public string PhysicalImpairmentReason
        {
            get { return _physicalimpairmentreason; }
            set { _physicalimpairmentreason = value; }
        }

        public bool HasInsuranceTerminated
        {
            get { return _hasinsuranceterminated; }
            set { _hasinsuranceterminated = value; }
        }

        public string InsuranceTerminatedReason
        {
            get { return _insuranceterminatedreason; }
            set { _insuranceterminatedreason = value; }
        }

        public string PamentType
        {
            get { return _pamenttype; }
            set { _pamenttype = value; }
        }

        public string BankName
        {
            get { return _bankname; }
            set { _bankname = value; }
        }

        public string ChequeNo
        {
            get { return _chequeno; }
            set { _chequeno = value; }
        }

        public string NameoftheCard
        {
            get { return _nameofthecard; }
            set { _nameofthecard = value; }
        }

        public string IssuingBankName
        {
            get { return _issuingbankname; }
            set { _issuingbankname = value; }
        }

        public string CreditCardNo
        {
            get { return _creditcardno; }
            set { _creditcardno = value; }
        }

        public string CardExpiryMonth
        {
            get { return _cardexpirymonth; }
            set { _cardexpirymonth = value; }
        }

        public string CardExpiryYear
        {
            get { return _cardexpiryyear; }
            set { _cardexpiryyear = value; }
        }

        public string CardType
        {
            get { return _cardtype; }
            set { _cardtype = value; }
        }

        public string QuoteRefNo
        {
            get { return _quoterefno; }
            set { _quoterefno = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public string RowGUID
        {
            get { return _rowguid; }
            set { _rowguid = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int64 CarResultId
        {
            get { return _carresultid; }
            set { _carresultid = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string Info2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string Info3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public Int64 NInfo1
        {
            get { return _ninfo1; }
            set { _ninfo1 = value; }
        }

        public void ClearFields()
        {
            _cecarmoredetailid = 0;
            _cecarid = 0;
            _providercompanyid = 0;
            _name = "";
            _postalcode = "";
            _unitno = "";
            _homeno = "";
            _address = "";
            _empnameandtrade = "";
            _mobileno = "";
            _homehoneno = "";
            _officephoneno = "";
            _nricno = "";
            _nationality = "";
            _hasdrivewestmalaysia = "";
            _ncdreason = "";
            _ncdotherreason = "";
            _vechicleno = "";
            //_odometerreading = "";
            _dateofregistration = new DateTime(1900, 1, 1);
            _engineno = "";
            _chassisno = "";
            //_estimatemarketValue = 0.0f;
            _hashirepurchase = false;
            _hpcompanyname = "";
            //_hpcpostalcode = "";
            //_hpcunitno = "";
            //_hpchomeno = "";
            //_hpcaddress = "";
            _haspreinsurer = false;
            _preinsurername = "";
            _preinsvechicleno = "";
            //_preinspolicyno = "";
            _preinsexpirydate = new DateTime(1900, 1, 1);
            _ncdentitlement = "";
            _hasvechiclemodified = false;
            _vechiclemodifyreason = "";
            _hasaccessory = false;
            _accessorydescription = "";
            //_insurancefromdate = new DateTime();
            //_insurancetodate = new DateTime();
            _hasconvictedmoteroffence = false;
            _convictedreason = "";
            _hasdemeritpoints = false;
            _hasphysicalimpairment = false;
            _physicalimpairmentreason = "";
            _hasinsuranceterminated = false;
            _insuranceterminatedreason = "";
            _pamenttype = "";
            _bankname = "";
            _chequeno = "";
            _nameofthecard = "";
            _issuingbankname = "";
            _creditcardno = "";
            _cardexpirymonth = "";
            _cardexpiryyear = "";
            _cardtype = "";
            _quoterefno = "";

            //common field name
            _refceuserid = 0;
            _rowguid = "";
            _vieweddetailid = 0;
            _status = false;
            _carresultid = 0;
            _createddate = new DateTime(1900, 1, 1);
            _modifieddate = new DateTime(1900, 1, 1);

            _info1 = "0";
            _info2 = "";
            _info3 = "0";
            _ninfo1 = 0;
        }

    }
}